package com.authService.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统权限表
 * </p>
 *
 * @author xiaopeng
 * @since 2024-09-22
 */
@Getter
@Setter
@TableName("sys_permission")
public class SysPermissionEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "权限名称")
    private String permsName;

    @Schema(description = "权限码，用于前端控制")
    private String permsCode;

    @Schema(description = "权限类型（1-菜单 2-按钮）")
    private Integer permsType;

    @Schema(description = "接口地址")
    private String path;

    @Schema(description = "是否软删除 0:未删除 1:删除")
    @TableLogic
    private Integer isDeleted;

    @Schema(description = "创建人")
    private Long createBy;

    @Schema(description = "修改人")
    private Long updateBy;

    @Schema(description = "创建人")
    private String createByName;

    @Schema(description = "修改人")
    private String updateByName;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;
}
